<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/templates/template_front_end.xhtml">
	<ui:insert name="header">
		<ui:include src="/pages/snippets/header_front_end.xhtml" />
	</ui:insert>
	<ui:define name="main">
		<h:form>
			<table>
				<tr>
					<td><h:outputLabel for="id" value="Id : " /></td>
					<td><p:inputText id="id" value="#{userMB.id}">
							<f:converter converterId="javax.faces.Integer" />
							<p:ajax event="blur" update="idMsg" />
						</p:inputText> <p:message id="idMsg" for="id" display="icon" /></td>
				</tr>
				<tr>
					<td><h:outputLabel for="name"
							value="#{front_end_messages['props.frontend.hello']}" /></td>
					<td><p:inputText id="name" value="#{userMB.name}">
							<f:validateLength minimum="5" />
							<p:ajax event="blur" update="nameMsg" />
						</p:inputText> <p:message id="nameMsg" for="name" display="icon" /></td>
				</tr>
				<tr>
					<td><h:outputLabel for="surname" value="Surname : " /></td>
					<td><p:inputText id="surname" value="#{userMB.surname}">
							<f:validateLength minimum="5" />
							<p:ajax event="blur" update="surnameMsg" />
						</p:inputText> <p:message id="surnameMsg" for="surname" display="icon" /></td>
				</tr>
				<tr>
					<td><p:commandButton id="addUser" value="Add" icon="OK"
							action="#{userMB.addUser}" ajax="false" /></td>
					<td><p:commandButton id="reset" value="Reset"
							action="#{userMB.reset}" ajax="false" /></td>
				</tr>
				<tr>
					<td colspan="2">
						<div class="buttons">
							<p:commandButton value="Navigate" styleClass="regular"
								icon="pressf5" actionListener="#{userMB.actionBT}" />
						</div>
					</td>
				</tr>

			</table>
		</h:form>
	</ui:define>
	<ui:insert name="left">
		<ui:include src="/pages/snippets/left_front_end.xhtml" />
	</ui:insert>
</ui:composition>